<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1 id="title" style="color:red">hello world</h1>
    
    <input type="text" id="shuru" onchange="clicked()">
    
    <button onclick="clicked()">clickme</button>

    <script>
       function clicked(){
           var yigeduixiang = document.getElementById("shuru")
           var v = yigeduixiang.value 
           
           var title_object = document.getElementById("title")
           title_object.innerHTML = v
       }
    </script>
</body>
</html>